package com.springboot.jktj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.springboot.jktj.mapper.JktjDoctorMapper;
import com.springboot.jktj.domain.JktjDoctor;
import com.springboot.jktj.service.IJktjDoctorService;

/**
 * 医生列Service业务层处理
 * 
 * @author springboot
 * @date 2023-11-29
 */
@Service
public class JktjDoctorServiceImpl implements IJktjDoctorService 
{
    @Autowired
    private JktjDoctorMapper jktjDoctorMapper;

    /**
     * 查询医生列
     * 
     * @param id 医生列主键
     * @return 医生列
     */
    @Override
    public JktjDoctor selectJktjDoctorById(Long id)
    {
        return jktjDoctorMapper.selectJktjDoctorById(id);
    }

    /**
     * 查询医生列列表
     * 
     * @param jktjDoctor 医生列
     * @return 医生列
     */
    @Override
    public List<JktjDoctor> selectJktjDoctorList(JktjDoctor jktjDoctor)
    {
        return jktjDoctorMapper.selectJktjDoctorList(jktjDoctor);
    }

    /**
     * 新增医生列
     * 
     * @param jktjDoctor 医生列
     * @return 结果
     */
    @Override
    public int insertJktjDoctor(JktjDoctor jktjDoctor)
    {
        return jktjDoctorMapper.insertJktjDoctor(jktjDoctor);
    }

    /**
     * 修改医生列
     * 
     * @param jktjDoctor 医生列
     * @return 结果
     */
    @Override
    public int updateJktjDoctor(JktjDoctor jktjDoctor)
    {
        return jktjDoctorMapper.updateJktjDoctor(jktjDoctor);
    }

    /**
     * 批量删除医生列
     * 
     * @param ids 需要删除的医生列主键
     * @return 结果
     */
    @Override
    public int deleteJktjDoctorByIds(Long[] ids)
    {
        return jktjDoctorMapper.deleteJktjDoctorByIds(ids);
    }

    /**
     * 删除医生列信息
     * 
     * @param id 医生列主键
     * @return 结果
     */
    @Override
    public int deleteJktjDoctorById(Long id)
    {
        return jktjDoctorMapper.deleteJktjDoctorById(id);
    }
}
